/**
 * Created by hang on 14-5-11.
 */
var host = "";
$(document).ready(function () {
	host = "http://114.215.121.115/xipujewelWeb";
/*
    $('.li_con1 a').easyZoom();
    $('.li_con2 a').easyZoom();
    $('.li_con3 a').easyZoom();*/

    setShopCartCount();
});

function setShopCartCount(){
    $.post(host + "/ShopCart/getShopCartCount",function (data) {
        if (data != null) {
            $("#shopCartCount").text(data);
            $("#shopCartCount2").text(data);
        }
    });
}

function addShopCars(id) {
    if (confirm("确定加入购物车")) {
        $.post(host + "/ring/addShopCar", {id: id},
            function (data) {
                if (data != null) {
                    setShopCartCount();
                    alert(data);
                }
            });
    }
}
